package cn.com.rexen.rplus.sa.model;

import java.util.ArrayList;
import java.util.List;

/**
 * 权限VO.
 * 
 * @author zhanghai
 * 
 */
@SuppressWarnings("serial")
public class PermissionVO extends BaseVO {

    /**
     * 资源VO对象.
     */
    private ResourceVO source;

    /**
     * 操作VO对象集合.
     */
    private List<OperateVO> op = new ArrayList<OperateVO>();

    /**
     * 主键id.
     */
    private String id;

    /**
     * 默认构造方法.
     */
    public PermissionVO() {
        super();
    }

    /**
     * 构造方法.
     * 
     * @param source
     *            资源对象VO.
     * @param op
     *            操作集合.
     * @param id
     *            唯一id.
     */
    public PermissionVO(ResourceVO source, List<OperateVO> op, String id) {
        super();
        this.source = source;
        this.op = op;
        this.id = id;
    }

    /**
     * 返回source.
     * 
     * @return the source
     */
    public ResourceVO getSource() {
        return source;
    }

    /**
     * 设置source.
     * 
     * @param source
     *            the source to set
     */
    public void setSource(ResourceVO source) {
        this.source = source;
    }

    /**
     * 返回op.
     * 
     * @return the op
     */
    public List<OperateVO> getOp() {
        return op;
    }

    /**
     * 设置op.
     * 
     * @param op
     *            the op to set
     */
    public void setOp(List<OperateVO> op) {
        this.op = op;
    }

    /**
     * 返回id.
     * 
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * 设置id.
     * 
     * @param id
     *            the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

}
